package com.suman.bbcticker.service;

import android.app.Service;
import android.appwidget.AppWidgetManager;
import android.content.Intent;
import android.os.Bundle;
import android.os.IBinder;


public class RefreshService extends Service {
	private int mAppWidgetId = AppWidgetManager.INVALID_APPWIDGET_ID;
	
		@Override
		public void onStart(Intent intent, int startId) {		
			super.onStart(intent, startId);		
			Bundle extras = intent.getExtras();
			if (extras != null) {
				mAppWidgetId = extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID);
			}
			Intent newIntent = new Intent(this, RssReaderService.class);
			newIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, mAppWidgetId);
			startService(newIntent);
		}

	@Override
	public IBinder onBind(Intent arg0) {
		// TODO Auto-generated method stub
		return null;
	}


}
